//
//  ViewController.m
//  Test-ZhuangHaiPeng
//
//  Created by Hai Peng Zhuang on 12/16/15.
//  Copyright © 2015 itcast. All rights reserved.
//

#import "ViewController.h"
#import "firstViewController.h"
#import "secondViewController.h"
#import "threeViewController.h"

@interface ViewController ()
- (IBAction)clickFirstButton;
- (IBAction)clickSecondButton;
- (IBAction)clickThreeButton;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
//    self.navigationController.navigationBarHidden = YES;
}


- (IBAction)clickFirstButton {
    
    firstViewController *firstVC = [[firstViewController alloc]init];

    [self.navigationController pushViewController:firstVC animated:YES];
}

- (IBAction)clickSecondButton {
    secondViewController *secondVC = [[secondViewController alloc]init];
    
    [self.navigationController pushViewController:secondVC animated:YES];
}

- (IBAction)clickThreeButton {
    threeViewController *threeVC = [[threeViewController alloc]init];
    
    [self.navigationController pushViewController:threeVC animated:YES];
}
@end
